package com.exam.operation.系统;

import java.util.List;

import com.exam.dao.DaoManager;
import com.exam.dao.HospitalDao;
import com.exam.entity.Condition;
import com.exam.operation.Operation;

public class 列医院详细信息 implements Operation
{
	private long hospitalId;
	private List<Condition> data;
	private int total;
	
	public void execute() throws Exception
	{
		HospitalDao dao = DaoManager.getInstance().getDao(HospitalDao.class);
		data = dao.listHospitalDetailById(hospitalId);
		total = data.size();
	}

	public long getHospitalId()
	{
		return hospitalId;
	}

	public void setHospitalId(long hospitalId)
	{
		this.hospitalId = hospitalId;
	}

	public List<Condition> getData()
	{
		return data;
	}

	public void setData(List<Condition> data)
	{
		this.data = data;
	}

	public int getTotal()
	{
		return total;
	}

	public void setTotal(int total)
	{
		this.total = total;
	}
}
